/*
========================================================================
 Name        : ExemListBox04AppUi.cpp
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
// [[[ begin generated region: do not modify [Generated System Includes]
#include <eikmenub.h>
#include <akncontext.h>
#include <akntitle.h>
#include <ExemListBox04.rsg>
// ]]] end generated region [Generated System Includes]

// [[[ begin generated region: do not modify [Generated User Includes]
#include "ExemListBox04AppUi.h"
#include "ExemListBox04.hrh"
#include "ExemListBox04ListBoxView.h"
// ]]] end generated region [Generated User Includes]

// [[[ begin generated region: do not modify [Generated Constants]
// ]]] end generated region [Generated Constants]

/**
 * Construct the CExemListBox04AppUi instance
 */ 
CExemListBox04AppUi::CExemListBox04AppUi()
	{
	// [[[ begin generated region: do not modify [Generated Contents]
	// ]]] end generated region [Generated Contents]
	iArrayZ = NULL;
	iArrayA = NULL;
	iArrayB = NULL;
	}

/** 
 * The appui's destructor removes the container from the control
 * stack and destroys it.
 */
CExemListBox04AppUi::~CExemListBox04AppUi()
	{
	// [[[ begin generated region: do not modify [Generated Contents]
	// ]]] end generated region [Generated Contents]

	if (iArrayZ != NULL)
			{
				iArrayZ->Reset();
				delete iArrayZ;
			}
		if (iArrayA != NULL)
			{
				iArrayA->Reset();
				delete iArrayA;
			}
		if (iArrayB != NULL)
			{
				iArrayB->Reset();
				delete iArrayB;
			}
		
	}

// [[[ begin generated function: do not modify
void CExemListBox04AppUi::InitializeContainersL()
	{
	iExemListBox04ListBoxView = CExemListBox04ListBoxView::NewL();
	AddViewL( iExemListBox04ListBoxView );
	SetDefaultViewL( *iExemListBox04ListBoxView );
	}
// ]]] end generated function

/**
 * Handle a command for this appui (override)
 * @param aCommand command id to be handled
 */
void CExemListBox04AppUi::HandleCommandL( TInt aCommand )
	{
	// [[[ begin generated region: do not modify [Generated Code]
	TBool commandHandled = EFalse;
	switch ( aCommand )
		{ // code to dispatch to the AppUi's menu and CBA commands is generated here
		default:
			break;
		}
	
		
	if ( !commandHandled ) 
		{
		if ( aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit )
			{
			Exit();
			}
		}
	// ]]] end generated region [Generated Code]
	
	}

/** 
 * Override of the HandleResourceChangeL virtual function
 */
void CExemListBox04AppUi::HandleResourceChangeL( TInt aType )
	{
	CAknViewAppUi::HandleResourceChangeL( aType );
	// [[[ begin generated region: do not modify [Generated Code]
	// ]]] end generated region [Generated Code]
	
	}
				
/** 
 * Override of the HandleKeyEventL virtual function
 * @return EKeyWasConsumed if event was handled, EKeyWasNotConsumed if not
 * @param aKeyEvent 
 * @param aType 
 */
TKeyResponse CExemListBox04AppUi::HandleKeyEventL(
		const TKeyEvent& aKeyEvent,
		TEventCode aType )
	{
	// The inherited HandleKeyEventL is private and cannot be called
	// [[[ begin generated region: do not modify [Generated Contents]
	// ]]] end generated region [Generated Contents]
	
	return EKeyWasNotConsumed;
	}

/** 
 * Override of the HandleViewDeactivation virtual function
 *
 * @param aViewIdToBeDeactivated 
 * @param aNewlyActivatedViewId 
 */
void CExemListBox04AppUi::HandleViewDeactivation( 
		const TVwsViewId& aViewIdToBeDeactivated, 
		const TVwsViewId& aNewlyActivatedViewId )
	{
	CAknViewAppUi::HandleViewDeactivation( 
			aViewIdToBeDeactivated, 
			aNewlyActivatedViewId );
	// [[[ begin generated region: do not modify [Generated Contents]
	// ]]] end generated region [Generated Contents]
	
	}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here. 
 */ 
void CExemListBox04AppUi::ConstructL()
	{
	// [[[ begin generated region: do not modify [Generated Contents]
	
	BaseConstructL( EAknEnableSkin  | 
					 EAknEnableMSK ); 
	InitializeContainersL();
	// ]]] end generated region [Generated Contents]
		iArrayZ = new (ELeave) CDesCArrayFlat(16);
		iArrayA = new (ELeave) CDesCArrayFlat(16);
		iArrayB = new (ELeave) CDesCArrayFlat(16);
		
		iArrayZ->AppendL(_L("\tzulu"));
		iArrayZ->AppendL(_L("\tzygoma"));
		iArrayZ->AppendL(_L("\tzygomata"));
		iArrayZ->AppendL(_L("\tzygomorphic"));
		iArrayZ->AppendL(_L("\tzygomorphous"));
		iArrayZ->AppendL(_L("\tzygophyte"));
		iArrayZ->AppendL(_L("\tzygospore"));
		iArrayZ->AppendL(_L("\tzymase"));
		iArrayZ->AppendL(_L("\tzymological"));
		iArrayZ->AppendL(_L("\tzymology"));
		iArrayZ->AppendL(_L("\tzymometer"));
		iArrayZ->AppendL(_L("\tzymosis"));
		iArrayZ->AppendL(_L("\tzymotechnics"));
		iArrayZ->AppendL(_L("\tzymotic"));
		
		iArrayA->AppendL(_L("\ta"));
		iArrayA->AppendL(_L("\ta-bomb"));
		iArrayA->AppendL(_L("\ta-going"));
		iArrayA->AppendL(_L("\ta-ok"));
		iArrayA->AppendL(_L("\ta-pac-thai"));
		iArrayA->AppendL(_L("\ta-plenty"));
		iArrayA->AppendL(_L("\ta-power"));
		iArrayA->AppendL(_L("\ta-road"));
		iArrayA->AppendL(_L("\ta-side"));
		iArrayA->AppendL(_L("\ta (little) tin god"));
		iArrayA->AppendL(_L("\ta bad debt"));
		iArrayA->AppendL(_L("\ta bad patch"));
		iArrayA->AppendL(_L("\ta bad workman blames his tools"));
		iArrayA->AppendL(_L("\ta bad workman quarrels with his tools"));
		
		iArrayB->AppendL(_L("\tb"));
		iArrayB->AppendL(_L("\tb-picture"));
		iArrayB->AppendL(_L("\tb-road"));
		iArrayB->AppendL(_L("\tb-complex"));
		iArrayB->AppendL(_L("\tb ed"));
		iArrayB->AppendL(_L("\tb eng"));
		iArrayB->AppendL(_L("\tb lit"));
		iArrayB->AppendL(_L("\tba"));
		iArrayB->AppendL(_L("\tbaa"));
		iArrayB->AppendL(_L("\tbaa-lamb"));
		iArrayB->AppendL(_L("\tbaal"));
		iArrayB->AppendL(_L("\tbaalism"));
		iArrayB->AppendL(_L("\tbaas"));
	
	}

